﻿using HCQ2_Model.APPModel.ParamModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;

namespace HCQ2_Model.VLine.Params
{
    /// <summary>
    ///  体验成绩
    /// </summary>
    public class ExperScoreParam: BaseAPI
    {
        /// <summary>
        ///  体验id【T_VLionsRecord表id】
        /// </summary>
        public int er_id { get; set; }
        /// <summary>
        ///  答题序号
        /// </summary>
        public string topic_num { get; set; }
        /// <summary>
        ///  课件代码
        /// </summary>
        [Required(ErrorMessage = "file_code：课件代码必填项！")]
        public string file_code { get; set; }
        /// <summary>
        ///  关卡代码
        /// </summary>
        public string folder_code { get; set; }
        /// <summary>
        ///  关卡名称
        /// </summary>
        public string folder_name { get; set; }
        /// <summary>
        ///  在线课堂id
        /// </summary>
        public int line_id { get; set; }
        /// <summary>
        ///  上课老师id	
        /// </summary>
        public int teacher_id { get; set; }
        /// <summary>
        ///  选择答案
        /// </summary>
        public string sel_result { get; set; }
        public string selResult { get; set; }
        /// <summary>
        ///  状态
        ///  0：错误
        ///  1：正确
        /// </summary>
        public int status { get; set; } = 0;
        /// <summary>
        ///  总得分
        /// </summary>
        [RegularExpression("^([0-9][0-9]*)$", ErrorMessage = "总得分必须满足正则：^([0-9][0-9]*)$")]
        public decimal score { get; set; }
        /// <summary>
        ///  答题时长（单位：秒）
        /// </summary>
        [RegularExpression("^([0-9]*)$",ErrorMessage = "答题时长必须满足正则：^([0-9]*)$")]
        public int em_time { get; set; }
        /// <summary>
        ///  题目内容
        /// </summary>
        [Required(ErrorMessage = "content：题目内容必填项！")]
        public string content { get; set; }
        /// <summary>
        ///  正确答案
        /// </summary>
        [Required(ErrorMessage = "answer：正确答案必填项！")]
        public string answer { get; set; }
        /// <summary>
        ///  题目解析
        /// </summary>
        public string parse { get; set; }
        /// <summary>
        ///  本题时长（单位：秒）
        /// </summary>
        [RegularExpression("^([0-9]*)$", ErrorMessage = "本题时长必须满足正则：^([0-9]*)$")]
        public int wm_time { get; set; }
        /// <summary>
        ///  题号
        /// </summary>
        public int num { get; set; }
    }
}